import React, { Component, Suspense } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
// import { connect } from 'dva';
import NotificationView from '@/pages/Account/Settings/NotificationView';
import { Layout, Avatar, Button, Icon, Row, Col, Drawer, Badge, Divider } from 'antd'; //1



class Settings extends Component {
  constructor() {
    super();
    this.state = {
        close:true,
    };
  }

  componentDidMount() {}

  onClose = () => {
    this.setState({
      close: false,
    });
  };


  render() {
    return (
        <div>
            <NotificationView closes={this.submit} />
        </div>
    //   <Drawer
    //     className="zdyset"
    //     title='用户设置'
    //     placement="right"
    //     closable = {false}
    //     onClose={this.onClose}
    //     visible={this.state.close}
    //     width="calc(100vw - 245px)"
    //     destroyOnClose
    //   >
    //     <NotificationView closes={this.submit} />
    //   </Drawer>
    );
  }
}

export default connect(({ user }) => ({
  // 全局数据
  currentUser: user.currentUser,
}))(Settings);
